// ignore_for_file: file_names
import 'package:flutter/material.dart';


class MyButton extends StatelessWidget {
  final String text;
  final double? width;
  final double? height;
  final double radius;
  final onPressed;
  MyButton(this.text,{this.width,this.height,this.radius=100,this.onPressed=null});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: height,
      child: RaisedButton(
        child: Text(text),
        onPressed: this.onPressed,
        shape: RoundedRectangleBorder(borderRadius:  BorderRadius.all(Radius.circular(radius))),
        textColor: Colors.white,
        color: Theme.of(context).accentColor,
        elevation: 15,
      ),
    );
  }
}

// class MyButton extends StatefulWidget {
//   String? text;
//   MyButton(String text,{Key? key});

//   @override
//   _MyButtonState createState() => _MyButtonState();
// }

// class _MyButtonState extends State<MyButton> {
//   @override
//   Widget build(BuildContext context) {
//     return Container(
//       child: RaisedButton(
//         child: Text(text),
//         onPressed: () {},
//         textColor: Colors.white,
//         color: Colors.blue[200],
//         elevation: 15,
//       ),
//     );
//   }
// }